import pymysql
class Data():
    def __init__(self):
        self.con=pymysql.connect(host='10.59.9.12',user='root',password='yidong666',database='a3mall')
        self.cur=self.con.cursor()
    def select(self,sql):
        self.cur.execute(sql)
        return self.cur.fetchall()
    def close(self):
        self.con.close()
        self.cur.close()